package com.chuhe.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import sun.util.calendar.BaseCalendar;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张楚河
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("group_info")
public class GroupInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 群ID
     */
    @TableId("group_id")
    private String groupId;

    /**
     * 群组名
     */
    @TableField("group_name")
    private String groupName;

    /**
     * 群主id
     */
    @TableField("group_owner_id")
    private String groupOwnerId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 群公告
     */
    @TableField("group_notice")
    private String groupNotice;

    /**
     * 0:直接加入 1:管理员同意后加入
     */
    @TableField("join_type")
    private Integer joinType;

    /**
     * 状态 1:正常 0:解散
     */
    @TableField("status")
    private Integer status;



}
